SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 69155: A query returns no rows for a newly created SAP IQ table

DetailsAboutRate It

After you create and insert data into an SAP IQ table using SAS/ACCESS® Interface to SAP IQ, no rows are returned on the following query if it is in the same call to the SQL procedure as shown here:

libname db sybaseiq user=sap_user password=password server=server_name host=host_name db=database port=9012 AUTOCOMMIT=yes;
proc sql DQUOTE=ANSI;
drop table db.customer;
create table db.customer(id int,name varchar(20),address varchar(30),tel int);
insert into db.customer values(1,'aaa','bb',123456);
insert into db.customer values(2,'cc ','dd',123456);
select * from db.customer;
quit;
NOTE: Table DB."customer" created, with 0 rows and 4 columns.
10?
NOTE: No rows were selected.

When you update data in an SAP IQ table, you must specify the ClientAutocommit option as part of the CONOPTS= string. By specifying this option, you are also able to update data in a table and can then query that table immediately after the update within the same call to PROC SQL.

Here is an example that shows how to specify the ClientAutocommit option:

libname db sapiq host=myserver server=myserver db=mydb uid="myuserid" pwd="mypassword" port=9011 autocommit=yes conopts="ClientAutocommit=yes";


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to SAP IQMicrosoft® Windows® for x649.449.449.4 TS1M79.4 TS1M8
Microsoft Windows 8 Enterprise 32-bit9.449.449.4 TS1M79.4 TS1M8
Microsoft Windows 8 Enterprise x649.449.449.4 TS1M79.4 TS1M8
Microsoft Windows 8 Pro 32-bit9.449.449.4 TS1M79.4 TS1M8
Microsoft Windows 8 Pro x649.449.449.4 TS1M79.4 TS1M8
Microsoft Windows 8.1 Enterprise 32-bit9.449.449.4 TS1M79.4 TS1M8
Microsoft Windows 8.1 Enterprise x649.449.449.4 TS1M79.4 TS1M8
Microsoft Windows 8.1 Pro 32-bit9.449.449.4 TS1M79.4 TS1M8
Microsoft Windows 8.1 Pro x649.449.449.4 TS1M79.4 TS1M8
Microsoft Windows 109.449.449.4 TS1M79.4 TS1M8
Microsoft Windows 119.449.449.4 TS1M79.4 TS1M8
Microsoft Windows Server 20089.449.449.4 TS1M79.4 TS1M8
Microsoft Windows Server 2008 R29.449.449.4 TS1M79.4 TS1M8
Microsoft Windows Server 2008 for x649.449.449.4 TS1M79.4 TS1M8
Microsoft Windows Server 2012 Datacenter9.449.449.4 TS1M79.4 TS1M8
Microsoft Windows Server 2012 R2 Datacenter9.449.449.4 TS1M79.4 TS1M8
Microsoft Windows Server 2012 R2 Std9.449.449.4 TS1M79.4 TS1M8
Microsoft Windows Server 2012 Std9.449.449.4 TS1M79.4 TS1M8
Microsoft Windows Server 20169.449.449.4 TS1M79.4 TS1M8
Microsoft Windows Server 20199.449.449.4 TS1M79.4 TS1M8
Microsoft Windows Server 20229.449.449.4 TS1M79.4 TS1M8
Windows 7 Enterprise 32 bit9.449.449.4 TS1M79.4 TS1M8
Windows 7 Enterprise x649.449.449.4 TS1M79.4 TS1M8
Windows 7 Home Premium 32 bit9.449.449.4 TS1M79.4 TS1M8
Windows 7 Home Premium x649.449.449.4 TS1M79.4 TS1M8
Windows 7 Professional 32 bit9.449.449.4 TS1M79.4 TS1M8
Windows 7 Professional x649.449.449.4 TS1M79.4 TS1M8
Windows 7 Ultimate 32 bit9.449.449.4 TS1M79.4 TS1M8
Windows 7 Ultimate x649.449.449.4 TS1M79.4 TS1M8
64-bit Enabled AIX9.449.449.4 TS1M79.4 TS1M8
64-bit Enabled Solaris9.449.449.4 TS1M79.4 TS1M8
HP-UX IPF9.449.449.4 TS1M79.4 TS1M8
Linux for x649.449.449.4 TS1M79.4 TS1M8
Solaris for x649.449.449.4 TS1M79.4 TS1M8
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.